<script>
  var id = location.search.substring(1);
  parent.postMessage({ id: id, protocol: location.protocol }, "*");
</script>
